Skip to content

Commit

Permalink
Version 1.0.23
Browse files Browse the repository at this point in the history
Updates to javascript configs
- Issue #220 - one-off operations
- Issue #222 - don't auto-fail js operations if there is no window focused
- Issue #218 - add isMovable and isResizable to windows
- Issue #221 - add aliases for more functions
- Issue #219 - add visibleRect to screen
Issue #206 - fix a crash
Issue #217 - better error when a key is unrecognized
Fix some minor memory leaks
  • Loading branch information
Jigish Patel committed Feb 1, 2013
1 parent d5cc7db commit cc61d4c
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Slate/Slate-Info.plist
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.22</string>
<string>1.0.23</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSBackgroundOnly</key>
Expand Down
14 changes: 13 additions & 1 deletion VERSION
@@ -1,4 +1,16 @@
Current Version: 1.0.22
Current Version: 1.0.23

----------------- 1.0.23 ----------------

Updates to javascript configs
- Issue #220 - one-off operations
- Issue #222 - don't auto-fail js operations if there is no window focused
- Issue #218 - add isMovable and isResizable to windows
- Issue #221 - add aliases for more functions
- Issue #219 - add visibleRect to screen
Issue #206 - fix a crash
Issue #217 - better error when a key is unrecognized
Fix some minor memory leaks

----------------- 1.0.22 ----------------

Expand Down
2 changes: 1 addition & 1 deletion build/Debug/Slate.app/Contents/Info.plist
Expand Up @@ -23,7 +23,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.22</string>
<string>1.0.23</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
Binary file modified build/Debug/Slate.app/Contents/MacOS/Slate
Binary file not shown.
11 changes: 11 additions & 0 deletions build/Debug/Slate.app/Contents/Resources/initialize.js
Expand Up @@ -60,6 +60,16 @@
return _controller.operation(name, opts);
},

doOperation : function(name, opts) {
if (!_.isString(name)) {
throw "Operation name must be a string. Was: "+name;
}
if (opts !== undefined && !_.isObject(opts)) {
throw "Operation options must be undefined or a hash. Was: "+opts;
}
return _controller.doOperation(name, opts);
},

source : function(path) {
if (!_.isString(path)) {
throw "Source path must be a string. Was: "+path;
Expand Down Expand Up @@ -110,6 +120,7 @@
window.S.bnd = window.S.bind;
window.S.bnda = window.S.bindAll;
window.S.op = window.S.operation;
window.S.doop = window.S.doOperation;
window.S.opstr = window.S.operationFromString;
window.S.src = window.S.source;
window.S.lay = window.S.layout;
Expand Down
2 changes: 1 addition & 1 deletion build/Release/Slate.app/Contents/Info.plist
Expand Up @@ -23,7 +23,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.22</string>
<string>1.0.23</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
Binary file modified build/Release/Slate.app/Contents/MacOS/Slate
Binary file not shown.
11 changes: 11 additions & 0 deletions build/Release/Slate.app/Contents/Resources/initialize.js
Expand Up @@ -60,6 +60,16 @@
return _controller.operation(name, opts);
},

doOperation : function(name, opts) {
if (!_.isString(name)) {
throw "Operation name must be a string. Was: "+name;
}
if (opts !== undefined && !_.isObject(opts)) {
throw "Operation options must be undefined or a hash. Was: "+opts;
}
return _controller.doOperation(name, opts);
},

source : function(path) {
if (!_.isString(path)) {
throw "Source path must be a string. Was: "+path;
Expand Down Expand Up @@ -110,6 +120,7 @@
window.S.bnd = window.S.bind;
window.S.bnda = window.S.bindAll;
window.S.op = window.S.operation;
window.S.doop = window.S.doOperation;
window.S.opstr = window.S.operationFromString;
window.S.src = window.S.source;
window.S.lay = window.S.layout;
Expand Down
Binary file modified build/Release/Slate.dmg
Binary file not shown.

0 comments on commit cc61d4c

Please sign in to comment.