This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var __extends = this.__extends || function (d, b) { | |
| for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
| //__.constructor = __.prototype.constructor | |
| function __() { this.constructor = d; } | |
| __.prototype = b.prototype; | |
| d.prototype = new __(); | |
| }; | |
| //Note:类似于下面方式和属性拷贝的综合 | |
| function extend(Child, Parent) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){ | |
| var topics = {}; | |
| jQuery.Topic = function(id){ | |
| var callback = $.Callbacks(); | |
| var topic = id && topics[id]; | |
| if(!topic){ | |
| topic = { | |
| publish: callback.fire, | |
| subscribe: callback.add, | |
| unsubscribe: callback.remove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -webkit-touch-callout: none; | |
| -webkit-user-select: none; | |
| -khtml-user-select: none; | |
| -moz-user-select: none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| http://stackoverflow.com/questions/826782/css-rule-to-disable-text-selection-highlighting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| REM log the run times of this bat script to the log.txt | |
| set "directory=%~dp0" | |
| set "log_file=%directory%log.txt" | |
| if not exist %log_file% ( | |
| copy NUL %log_file% | |
| echo 1 >> %log_file% | |
| goto COUNT_END | |
| ) else ( |