Skip to content
This repository was archived by the owner on Feb 16, 2019. It is now read-only.

Commit e408644

Browse files
committed
Fixed bug: Pot.isEmpty(function(){}) returns true on Firefox17.
Fixed ReferenceError.
1 parent 28ed83a commit e408644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ RE_RTRIM = /[\s\u00A0\u3000]+$/g,
121121
RE_STRIP = /[\s\u00A0\u3000]+/g,
122122
RE_NL = /\r\n|\r|\n/,
123123
RE_NL_GROUP = /(\r\n|\r|\n)/,
124-
RE_EMPTYFN = /^[(]?[^{]*?[{][\s\u00A0]*[}]\s*[)]?\s*$/,
124+
RE_EMPTYFN = /^(?:[(]\s*function)\s*[(]?[^{]*?[{][\s\u00A0]*[}]\s*[)]?\s*[)]?\s*$/,
125125
RE_JS_ESCAPED = /^(?:[\w!#$()*+,.:;=?@[\]^`|~-]|\\[ux][0-9a-f]+)*$/i,
126126
RE_HTML_ESCAPED =
127127
/^(?:[^<>"'&]|&(?:[a-z]\w{0,24}|#(?:x[0-9a-f]{1,8}|[0-9]{1,10}));)*$/i,/*{#endif}*/
@@ -1187,7 +1187,7 @@ update(PotInternal, {
11871187
* @ignore
11881188
* @based JSDeferred.next
11891189
*/
1190-
flush : function() {
1190+
flush : function(callback) {
11911191
(this.byTick || this.byImmediate ||
11921192
this.byMessage || this.byEvent ||
11931193
this.byTimer)(callback);

0 commit comments

Comments
 (0)