This file contains 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
// usage: | |
// EventEmitter.mixin(myObject) | |
// myObject.emit('eventname', param1, param2, etc) | |
// myObject.on('eventname', function(param1, param2, etc) {}) | |
var EventEmitter = function () {}; | |
EventEmitter.prototype = { | |
// add event handler | |
on: function (event, fn) |
This file contains 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
fs.exists(file, function (exists) | |
{ | |
if (exists) | |
{ | |
fs.stat(file, function (error, stats) | |
{ | |
fs.open(file, "r", function (error, fd) | |
{ | |
var buffer = new Buffer(stats.size); | |
fs.read(fd, buffer, 0, buffer.length, null, function (error, bytesRead, buffer) |
This file contains 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
.ui-btn, | |
.ui-btn h4, | |
html body .ui-group-theme-a .ui-bar-inherit, | |
html body .ui-group-theme-a a, | |
html body .ui-group-theme-b .ui-bar-inherit, | |
html body .ui-group-theme-b a, | |
label.ui-btn { | |
font-weight: normal !important; | |
} |
NewerOlder