Update dialog.js
Update dialog-spec.js
Merge pull request #87 from crossjs/master

当且仅当最后一个 dialog 是当前 dialog 时，才从 mask._dialogs 中移除