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
angular.module('utils.filters', []) | |
.filter('wrapText', wrapText); | |
function wrapText($sce) { | |
return function (source, needle, wrap, strict) { | |
var regex; | |
if (typeof needle === 'string') { | |
regex = new RegExp(needle, "gi"); | |
} else { |
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
angular.module('utils.filters', []) | |
.filter('wrapText', wrapText); | |
function wrapText($sce) { | |
return function (source, needle, wrap, strict) { | |
var regex; | |
if (typeof needle === 'string') { | |
regex = new RegExp(needle, "gi"); | |
} else { |
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
// code here... | |
- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType | |
{ | |
// return [super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; | |
NSURL *url = [request URL]; | |
NSString *path = [url path]; | |
// Intercept the external http requests and forward to Safari.app | |
// Otherwise forward to the PhoneGap WebView |
NewerOlder